import 'package:flutter/material.dart';
import 'package:test1/View/MyRowText.dart';
import 'package:test1/pages/test/Test_Detail_Page.dart';
import 'package:test1/pages/test/Test_Shopping_Car_Page.dart';

class Flutter_Test_Pages extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("小练习"),
        ),
        body: ListView(
          children: <Widget>[
            MyRowText("购物车", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return new Test_Shopping_Car_Page();
                }))
            ),
            MyRowText("详情页", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return new Test_Detail_Page();
                }))
            ),
          ],
        ),
      ),
    );
  }
}